/*
 * @Description:
 * @FilePath: \rs_wms_pc\src\api\invoice\proStockApply.js
 */
import request from '@/utils/request'

// 查询生产入库申请单列表
export function listApply(query) {
  return request({
    url: '/invoice/proStockApply/list',
    method: 'get',
    params: query
  })
}

// 查询生产入库申请单详细
export function getApply(id) {
  return request({
    url: '/invoice/proStockApply/' + id,
    method: 'get'
  })
}

// 新增生产入库申请单
export function addApply(data) {
  return request({
    url: '/invoice/proStockApply',
    method: 'post',
    data: data
  })
}

// 修改生产入库申请单
export function updateApply(data) {
  return request({
    url: '/invoice/proStockApply',
    method: 'put',
    data: data
  })
}

// 删除生产入库申请单
export function delApply(id) {
  return request({
    url: '/invoice/proStockApply/' + id,
    method: 'delete'
  })
}

// 取消销售订单
export function cancelApply(data) {
  return request({
    url: '/invoice/proStockApply/cancel',
    method: 'put',
    data: data
  })
}

// 确认取消销售订单
export function confirmCancelApply(data) {
  return request({
    url: '/invoice/proStockApply/confirmCancel',
    method: 'put',
    data: data
  })
}
